Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep bindable environment references intact #146

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

markusthoemmes
Copy link
Contributor

App Platform allows for bindable variables in environment variables (see https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/#using-bindable-variables-within-environment-variables). They look like "normal" env-var references though and so our env-var-expansion process destroyed those references since generally the respective value isn't present on the action's env.

This fixes that by not expanding the respective env vars if no value is present in the environment and the reference looks like a bindable reference.

App Platform allows for bindable variables in environment variables (see https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/#using-bindable-variables-within-environment-variables). They look like "normal" env-var references though and so our env-var-expansion process destroyed those references since generally the respective value isn't present on the action's env.

This fixes that by not expanding the respective env vars if no value is present in the environment and the reference looks like a bindable reference.
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Sep 25, 2024
@markusthoemmes markusthoemmes added the bug Something isn't working label Sep 25, 2024
@markusthoemmes markusthoemmes merged commit 6b73512 into main Sep 25, 2024
5 checks passed
@markusthoemmes markusthoemmes deleted the bindable-vars branch September 25, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants